#include <stdio.h>
#define MAXSIZE 100
typedef int ElemType;

typedef struct 
{
    ElemType data[MAXSIZE];
    int front, rear;
}Queue;

void InitQueue(Queue* q)
{
    q->front = 0;
    q->rear = 0;
}

int isEmpty(Queue* q)
{
    if(q->front == q->rear)
    {
        printf("Queue is empty\n");
        return 1;
    }
    else
    {
        return 0;
    }
}

ElemType dequeue(Queue* q)
{
    if(isEmpty(q))
    {
        return -1; // or some error value
    }
    ElemType e = q->data[q->front];
    q->front++;
    return e;
}

int equeue(Queue* q, ElemType e)
{
    if(q->rear >= MAXSIZE)
    {
        printf("Queue is full\n");
        return 0;
    }
    q->data[q->rear] = e;
    q->rear++;
    return 1;
}



int main()
{
    return 0;
}